package com.ithei.date.mydate;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class JDK8时间格式 {
    public static void main(String[] args) {
        LocalDateTime ldt=LocalDateTime.now();
        System.out.println(ldt);


        LocalDateTime ldt1=LocalDateTime.of(2021,6,15,12,11,22);
        System.out.println(ldt1);


        LocalDate ld=LocalDate.now();
        System.out.println(ld);


        LocalDate ld1=LocalDate.of(2020,6,14);
        System.out.println(ld1);



        LocalTime lt=LocalTime.now();
        System.out.println(lt);



        LocalTime lt1=LocalTime.of(12,21,33);
        System.out.println(lt1);




    }

    public static void dateTime(){

    }

}


